package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the OUT_ERX_CHARGE_DETAIL database table.
 * 
 */
@Entity
@Table(name="OUT_ERX_CHARGE_DETAIL")
@NamedQuery(name="OutErxChargeDetail.findAll", query="SELECT o FROM OutErxChargeDetail o")
public class OutErxChargeDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="OUT_ERX_CHAR_DETAIL_ID")
	@SequenceGenerator(initialValue=100,allocationSize=1,name="OUT_ERX_CHAR_DETAIL_ID", sequenceName="SEQ_1")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="OUT_ERX_CHAR_DETAIL_ID")
	private long outErxCharDetailId;

	@Column(name="MEDICAL_ID")
	private BigDecimal medicalId;

	@Column(name="MEDICAL_NAME")
	private String medicalName;

	@Column(name="MEDICAL_NUM")
	private BigDecimal medicalNum;

	@Column(name="MEDICAL_PRICE")
	private BigDecimal medicalPrice;

	@Column(name="MEDICAL_SUBTOTAL")
	private BigDecimal medicalSubtotal;

	@Column(name="OUT_DRUGS_TYPE")
	private String outDrugsType;

	private String unit;

	@Column(name="USAGE_DOSAGE")
	private String usageDosage;

	//bi-directional many-to-one association to HospWorkPatientErx
	@ManyToOne
	@JoinColumn(name="PRESCRIPTIONNUM")
	private HospWorkPatientErx hospWorkPatientErx;

	public OutErxChargeDetail() {
	}

	public long getOutErxCharDetailId() {
		return this.outErxCharDetailId;
	}

	public void setOutErxCharDetailId(long outErxCharDetailId) {
		this.outErxCharDetailId = outErxCharDetailId;
	}

	public BigDecimal getMedicalId() {
		return this.medicalId;
	}

	public void setMedicalId(BigDecimal medicalId) {
		this.medicalId = medicalId;
	}

	public String getMedicalName() {
		return this.medicalName;
	}

	public void setMedicalName(String medicalName) {
		this.medicalName = medicalName;
	}

	public BigDecimal getMedicalNum() {
		return this.medicalNum;
	}

	public void setMedicalNum(BigDecimal medicalNum) {
		this.medicalNum = medicalNum;
	}

	public BigDecimal getMedicalPrice() {
		return this.medicalPrice;
	}

	public void setMedicalPrice(BigDecimal medicalPrice) {
		this.medicalPrice = medicalPrice;
	}

	public BigDecimal getMedicalSubtotal() {
		return this.medicalSubtotal;
	}

	public void setMedicalSubtotal(BigDecimal medicalSubtotal) {
		this.medicalSubtotal = medicalSubtotal;
	}

	public String getOutDrugsType() {
		return this.outDrugsType;
	}

	public void setOutDrugsType(String outDrugsType) {
		this.outDrugsType = outDrugsType;
	}

	public String getUnit() {
		return this.unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getUsageDosage() {
		return this.usageDosage;
	}

	public void setUsageDosage(String usageDosage) {
		this.usageDosage = usageDosage;
	}

	public HospWorkPatientErx getHospWorkPatientErx() {
		return this.hospWorkPatientErx;
	}

	public void setHospWorkPatientErx(HospWorkPatientErx hospWorkPatientErx) {
		this.hospWorkPatientErx = hospWorkPatientErx;
	}

}